509318396 ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ # Saudi Warehouse landing page setup ## Requirements - PHP 7.4 or newer with PDO MySQL and mbstring - MySQL 5.7+ or MariaDB 10.3+ - HTTPS enabled on the live domain ## Installation 1. Create a MySQL database and import `schema.sql` in phpMyAdmin. 2. Open `config.php` and enter the database host, name, username, and password. Environment variables with the same names can be used instead. 3. Generate a secure admin password hash: `php -r "echo password_hash('YOUR_STRONG_PASSWORD', PASSWORD_DEFAULT), PHP_EOL;"` 4. Paste the generated value into `admin.password_hash` in `config.php`, or set `ADMIN_PASSWORD_HASH` in the hosting environment. Change the admin username if needed. 5. Upload all files while preserving the `admin` folder. 6. Submit one test lead, then sign in at `/admin/login.php` and confirm it appears and downloads correctly. ## Accepted Saudi phone formats - Mobile: `05XXXXXXXX`, `5XXXXXXXX`, `+9665XXXXXXXX` - Landline: `011`, `012`, `013`, `014`, `016`, or `017` followed by seven digits; local and `+966` formats are accepted. The backend always stores accepted numbers in the normalized `+966` format.